<?php
class Webkul_Marketplacepartner_Block_Store extends Mage_Core_Block_Template
{
	public function _prepareLayout(){	
		$mysqlprefix = Mage::getConfig()->getTablePrefix();//code for mysql prefix
		$write  = Mage::getSingleton('core/resource')->getConnection('core_write');
		$querysocial=$write->query("SELECT compname FROM ".$mysqlprefix."marketplacepartner_entity_userdata where mageuserid='".$_GET["id"]."'");
		$rowsocial=$querysocial->fetch();
		$this->getLayout()->getBlock('head')->setTitle($rowsocial['compname'].' Store');
		return parent::_prepareLayout();
    }
    
    public function getCustomerpartner(){ 
        if (!$this->hasData('marketplacepartner')) {
            $this->setData('marketplacepartner', Mage::registry('marketplacepartner'));
        }
		$id=$_GET["id"];
		return $id;    
    }
}